package query

import (
	"ssdevice/common/dto"
)

type SysOTAPackageQuery struct {
	dto.Pagination `search:"-"`
	dto.OrderBy    `search:"-"`
	dto.UserInfo
	Id          string   `form:"id" json:"id" search:"type:exact;column:id;table:sys_ota_package"`
	Name        string   `form:"name"  search:"type:contains;column:name;table:sys_ota_package"`
	Version     string   `form:"version"  search:"type:contains;column:version;table:sys_ota_package"`
	ProductId   string   `form:"productId"  search:"type:exact;column:product_id;table:sys_ota_package"`
	ProductName string   `form:"productName"  search:"type:contains;column:product_name;table:sys_ota_package"`
	IdIn        []string `form:"idIn" search:"type:in;column:id;table:sys_ota_package"`
}

func (m *SysOTAPackageQuery) GetNeedSearch() interface{} {
	return *m
}
